package ningbo.Arrays;

import sun.security.util.Length;

import java.sql.SQLOutput;
import java.util.Arrays;

/**
 * @Author 宁铂
 * @Date 2021/7/17 16:00
 * @Version 1.0
 */
public class ReviewString2 {
    /** 本类用于测试分割字符串 */
    public static void main(String[] args) {

        String str = "a,b,c,d,e,f,g";

        String[] a1 = str.split(",");

        for( int i = 0; i < a1.length; i++){
            System.out.println(a1[i]);
        }

        System.out.println(Arrays.toString(str.split(",")));
    }
}
